﻿using UnityEngine;
using System.Collections;

public class TimeScript : MonoBehaviour 
{
    public GameObject hourHand;
    public GameObject minuteHand;
    private float hourDuration = 10;
    private float workHours = 8;
    private float timePassed = 0;

	void Start () 
    {
        hourHand.transform.Rotate(Vector3.forward, 210);

        minuteHand.transform.Rotate(Vector3.forward, 90);
        timePassed = 0;
	}

	void Update () 
    {
        timePassed += Time.deltaTime;
        hourHand.transform.Rotate(Vector3.forward, -(240/(workHours*hourDuration)) * Time.deltaTime);
        minuteHand.transform.Rotate(Vector3.forward, -(360 / hourDuration) * Time.deltaTime);
	}
}
